package cn.edu.scau.cmi.wuzhenzhou.abstractFactory.factory;

import cn.edu.scau.cmi.wuzhenzhou.abstractFactory.domainAbstractClass.Beef;
import cn.edu.scau.cmi.wuzhenzhou.abstractFactory.domainAbstractClass.Chicken;
import cn.edu.scau.cmi.wuzhenzhou.abstractFactory.domainAbstractClass.Pork;


public abstract class MeatFactory {
	public static MeatFactory getMeatFactory(String brand) {
		switch (brand) {
		case "Wens":
			return new WensMeatFactory();
		case "Tianbang":
			return new TianbangMeatFactory();
		case "Aonong":
			return new AonongMeatFactory();
		default:
			return null;
		}
	}
	
	public abstract Beef createBeef();
	public abstract Pork createPork();
	public abstract Chicken createChicken();
}
